package com.luohai.stock.mapper;

import com.luohai.stock.pojo.domain.InnerStockWeekDomain;
import com.luohai.stock.pojo.domain.StockBusinessDomain;
import com.luohai.stock.pojo.entity.StockBusiness;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author acer
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-09-15 21:17:12
* @Entity com.luohai.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    List<String> getCodeAll();

    List<Map> getSearch(@Param("searchStr") String searchStr);

    StockBusinessDomain getDescribe(@Param("code") String code);


    List<InnerStockWeekDomain> getWeekkline1(@Param("code") String code,@Param("startTime4T") Date startTime4T,@Param("endTime4T") Date endTime4T);

    List<BigDecimal> getWeekkline2(@Param("code") String code,@Param("startTime4T") Date startTime4T,@Param("endTime4T") Date endTime4T);

    List<BigDecimal> getWeekkline3(@Param("code") String code,@Param("startTime4T") Date startTime4T,@Param("endTime4T") Date endTime4T);
}
